<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta name="applicable-device" content="pc"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <title>${informationEntity.title } </title>
    <meta name="keywords" content="${informationEntity.abstractContent }"/>
    <meta name="description" content="${informationEntity.abstractContent } "/>
    <link href="<%=path %>/css/common1.css" rel="stylesheet" type="text/css"/>
    <link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css" />
    <link href="<%=path %>/css/button.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript" src="<%=path %>/js/jquery-1.12.4.min.js"></script>
    <script src="<%=path %>/js/slide.js" type="<%=path %>/text/javascript"></script>
	<link href="http://img.pccoo.cn/meishi/css2/sub.css" rel="stylesheet" type="text/css" />
	<script src="<%=path %>/js/global.js" type="<%=path %>/text/javascript"></script>
<style>
	
	.artical{
		margin:0 176.500;
	}
	.articale_title{
	    font-size: 48px;
	    font-weight: 700;
	    color: #2F4050;
		text-align: center;
	}
	
	.artical_content{
		font-size: 15px;
	    line-height: 26px;
	}
	.artical_msg{
		text-align: center;
	}
	a{text-decoration:none}
	a:hover {text-decoration: none;}
	
	/* .all_food_box{
		min-height: 300px;
	} */
	
	.checkbox_label{
		font-size : 1px;
		
	}
</style> 


<script type="text/javascript">
	function shudownFood(){
		var chk_value =[];//定义一个数组  
	    $('input[name="shutdownFood"]:checked').each(function(){//遍历每一个名字为interest的复选框，其中选中的执行函数  
	     	chk_value.push($(this).val());//将选中的值添加到数组chk_value中  
	     });
		var action = {"dishIds":chk_value.join(",")};
		var url = "<%=path %>/business/underShelf";
		var result = ajaxWithServer(url,action);
		if(result.result){
			if(result.data.underShelfResult){
				window.location.reload();
			}else{
				alert(result.data.errorMsg);
			}
		}else{
			alert("您没有登陆，或者您的操作非法!");
		}
		
	}

</script>
  </head>
  
  <body>
   <!--头部-->
<jsp:include page="../include/head.jsp">
	<jsp:param value="content" name="head" />
</jsp:include>

<!--导航-->
<jsp:include page="../include/nav.jsp">
	<jsp:param value="content" name="nav" />
</jsp:include>


<div class="h10"></div>
<div class="h10"></div>
<div class="artical" id="artical_div" style="text-align: right;">
	<div class="text-center article-title">
		<a  class="btn_error btn_b" href="javascript:void(0)" onclick="shudownFood()">下架</a>
		<a  class="btn_primary btn_b"  href="<%=path %>/business/toAddFood">发布新美食</a>
		
	</div>	
</div>
<div class="h10"></div>
<div class="h10"></div>

<!--美食推荐-->
<div id="tuijian" class="all_food_box">
	<c:choose>
		<c:when test="${dishesEntities ne null and fn:length(dishesEntities) >0}">
			 <c:forEach items="${dishesEntities }" var="dishesEntity">
	  	<div class="w19"></div>
		<div class="tuijianbox">
			<div class="tuijian">
				<a href="<%=path %>/dishes/dishesDtail?id=${dishesEntity.id}" target="_self"> <img
					src="<%=path %>/${dishesEntity.topPic}"
					width="290" height="220" border="0" title="${dishesEntity.name}" /></a> 
				<div class="text">
					<h3>
						
						<a href="<%=path %>/dishes/dishesDtail?id=${dishesEntity.id}" target="_self" title="${dishesEntity.name}">${dishesEntity.name}</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<label class="checkbox_label">
						<input type="checkbox" name="shutdownFood" value="${dishesEntity.id}">
						勾选以下架
					</label>
					</h3>
					<ul>
						<li><span class="b">美食特色：</span>[<a
							href="<%=path %>/dishes/dishesDtail?id=${dishesEntity.id}" target="_self" class="unline">详情</a>]</li>
						<li>商家：<a href="<%=path %>/dishes/toBusinessHome?id=${dishesEntity.user.userId}" target="_self"
							class="blue12">${dishesEntity.user.nickName}</a></li>
					</ul>
				</div>
			</div>
		</div>
	  </c:forEach>
		
		</c:when>
		<c:otherwise>
		<style>
			.hhhh{
				margin: 20px 20px;
				font-size: 1.2em;
			}
		</style>
			<p class="hhhh">
			
			您的店铺空空如也。。。。
			</p>
		</c:otherwise>
	
	
	</c:choose>

	  <!-- <div class="tuijianbox">
		<div class="tuijian">
		  <a href="http://www.baodi.ccoo.cn/"  target="_blank"> <img src="http://images.pccoo.cn/store/201238/20123818413986.jpg" width="290" height="220"  border="0" title="美味螃蟹"/></a><div class="text"> 
			<h3><a href="http://www.baodi.ccoo.cn/" target="_blank" title="美味螃蟹">美味螃蟹</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="food_id"  value="1"/></h3>
			<ul>
				<li><span class="b">小编导语：</span>[<a href="http://www.baodi.ccoo.cn/"  target="_blank" class="unline">详情</a>]</li>
				<li>商家：<a href="http://www.baodi.ccoo.cn/" target="_blank" class="blue12">宝坻美味城</a></li>
			</ul>
		</div>
		</div>
	</div>
		<div class="w19"></div>
		<div class="tuijianbox">
			<div class="tuijian">
				<a href="http://www.baodi.ccoo.cn/" target="_blank"> <img
					src="http://images.pccoo.cn/store/201238/20123818351838.jpg"
					width="290" height="220" border="0" title="火锅鸡" /></a>
				<div class="text">
					<h3>
						<a href="http://www.baodi.ccoo.cn/" target="_blank" title="火锅鸡">火锅鸡</a>
					</h3>
					<ul>
						<li><span class="b">小编导语：</span>[<a
							href="http://www.baodi.ccoo.cn/" target="_blank" class="unline">详情</a>]</li>
						<li>商家：<a href="http://www.baodi.ccoo.cn/" target="_blank"
							class="blue12">宝坻美味城</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div class="w19"></div>
	  <div class="tuijianbox">
		<div class="tuijian">
		  <a href="http://www.baodi.ccoo.cn/"  target="_blank"> <img src="http://images.pccoo.cn/store/201238/20123818251044.jpg" width="290" height="220"  border="0" title="羊排"/></a><div class="text"> 
			<h3><a href="http://www.baodi.ccoo.cn/" target="_blank" title="羊排">羊排</a></h3>
			<ul>
				<li><span class="b">小编导语：</span>[<a href="http://www.baodi.ccoo.cn/"  target="_blank" class="unline">详情</a>]</li>
				<li>商家：<a href="http://www.baodi.ccoo.cn/" target="_blank" class="blue12">宝坻美味城</a></li>
			</ul>
		</div>
		</div>
	</div>
	 <div class="tuijianbox">
		<div class="tuijian">
		  <a href="http://www.baodi.ccoo.cn/"  target="_blank"> <img src="http://images.pccoo.cn/store/201238/20123818251044.jpg" width="290" height="220"  border="0" title="羊排"/></a><div class="text"> 
			<h3><a href="http://www.baodi.ccoo.cn/" target="_blank" title="羊排">羊排</a></h3>
			<ul>
				<li><span class="b">小编导语：</span>[<a href="http://www.baodi.ccoo.cn/"  target="_blank" class="unline">详情</a>]</li>
				<li>商家：<a href="http://www.baodi.ccoo.cn/" target="_blank" class="blue12">宝坻美味城</a></li>
			</ul>
		</div>
		</div>
	</div> -->
</div>

  </body>
</html>
